package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    User findByUsername(String username);

    //查询管理员的全部信息
    public List<User> findUser();

    List<User> userList();

    public PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    public void add(User user, Integer[] roleIds);

    public void edit(User user, Integer[] roleIds);

    public User findById(Integer id);

    public List<Integer> findRolesByUserId(Integer id);

    public void delete(Integer id);
}
